var Engine = {
    MaxZ: 1000,
    MaxColor : 255,
    Phong : "phong",
    Skybox : "skybox",
    Toon : "toon",
    Near : 1,
    Far: 1000,
    Reflection : "reflection",
    Bump : "bump",
	Hatching : "hatching"
};

Number.prototype.clamp = function(min, max) {
  return Math.min(Math.max(this, min), max);
};

// Array Remove - By John Resig (MIT Licensed)
Array.prototype.remove = function(from, to) {
  var rest = this.slice((to || from) + 1 || this.length);
  this.length = from < 0 ? this.length + from : from;
  return this.push.apply(this, rest);
};